package com.infra.micro.quartz.model.vo;

import com.infra.common.resp.PrintFriendliness;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "QuartzJobVO", description = "定时任务数据传输对象")
public class QuartzJobVO extends PrintFriendliness {
    public static final String JOB_KEY = "JOB_KEY";

    /**
     * BIGINT(19) 必填
     * 任务id
     */
    @ApiModelProperty(name = "jobId", value = "任务id")
    private long jobId;

    /**
     * VARCHAR(126)
     * 任务名称
     */
    @ApiModelProperty(name = "jobName", value = "任务名称")
    private String jobName;

    /**
     * VARCHAR(200)
     * spring bean名称
     */
    @ApiModelProperty(name = "beanName", value = "spring bean名称")
    private String beanName;

    /**
     * VARCHAR(2000)
     * 参数
     */
    @ApiModelProperty(name = "params", value = "参数")
    private String params;

    /**
     * VARCHAR(100)
     * cron表达式
     */
    @ApiModelProperty(name = "cronExpression", value = "cron表达式")
    private String cronExpression;

    /**
     * BIT(1)
     * 暂停标识
     */
    @ApiModelProperty(name = "isPause", value = "暂停标识")
    private boolean isPause;

    /**
     * VARCHAR(2000)
     * 预警邮箱列表，以逗号隔开
     */
    @ApiModelProperty(name = "alarmEmail", value = "预警邮箱列表，以逗号隔开")
    private String alarmEmail;

    /**
     * VARCHAR(255)
     * 预警短信列表，以逗号隔开
     */
    @ApiModelProperty(name = "alarmSms", value = "预警短信列表，以逗号隔开")
    private String alarmSms;

    /**
     * VARCHAR(255)
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Date createTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bh_quartz_job
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public long getJobId() {
        return jobId;
    }

    public void setJobId(long jobId) {
        this.jobId = jobId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public boolean isPause() {
        return isPause;
    }

    public void setPause(boolean pause) {
        isPause = pause;
    }

    public String getAlarmEmail() {
        return alarmEmail;
    }

    public void setAlarmEmail(String alarmEmail) {
        this.alarmEmail = alarmEmail;
    }

    public String getAlarmSms() {
        return alarmSms;
    }

    public void setAlarmSms(String alarmSms) {
        this.alarmSms = alarmSms;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
